package eCheque;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author Steve Pennington
 * 
 */
public class EChequeUtils {
	/**
	 * Closes a connection or resource while checking for null or IOError.
	 * 
	 * @param toClose
	 *            Connection or resource to close
	 */
	public static void safeClose(Closeable toClose) {
		if (toClose != null) {
			try {
				toClose.close();
			} catch (IOException e) {
			}
		}
	}
}
